package com.itheima.reggie.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

// 员工
@Data
public class Employee implements Serializable {

    //状态标识常量
    public static final Integer STATUS_DISABLE = 0;
    public static final Integer STATUS_ENABLE = 1;

    //主键
    private Long id;

    //用户名
    private String username;

    //姓名
    private String name;

    //密码
    private String password;

    //密码
    private String phone;

    //密码
    private String sex;

    //密码
    private String idNumber;

    //状态 0:禁用 1:正常
    private Integer status;

    //创建时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    //更新时间
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    //创建时间
    @TableField(fill = FieldFill.INSERT)
    private Long createUser;

    //创建时间
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Long updateUser;
}